package com.yztc.love_travel.utils;

import android.app.Application;
import android.util.Log;

import okhttp3.OkHttpClient;

/**
 * Created by steven on 16/3/17.
 */
public class MyApplication extends Application {
    private static final String TAG = "MyAppliction";

    @Override
    public void onCreate() {
        super.onCreate();

        //初始化单例的OkHttpClient对象
        initOkHttpUtils();

    }

    private void initOkHttpUtils() {
        OkHttpClient okHttpClient = OkHttp3Utils.getOkHttpSingletonInstance();
        Log.i(TAG, "---->initOkHttpUtils: "  + okHttpClient.toString());
    }
}
